//**************************************************//
// Unique Keychain Arduino Code                     //
// ECE 387, Miami University, Spring 2013           // 
// Created By: Andrew Heldt, Lee Mondini, and       //
// Shiloh Womack                                    //
//**************************************************//
int outPin = 12; // Output connected to digital pin 12
int inPin = 7; // Input connected to digital pin 4
int pressed = 0; // Has the button been pressed

void setup()
{
 pinMode(outPin, OUTPUT); // sets the digital pin as output
 pinMode(inPin, INPUT); // sets the digital pin as output
}

void loop()
{
  pressed = digitalRead(inPin);
  
  if(pressed == HIGH)
  {
      digitalWrite(outPin, HIGH);
  }
  else
  {
      digitalWrite(outPin, LOW);
  }

}
